package com.rs.dao;

import java.util.List;

import com.github.pagehelper.Page;
import com.rs.model.ZhReimburse;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ZhReimburseMapper {


    int deleteByPrimaryKey(Integer reId);

    int insert(ZhReimburse record);

    //添加一条报销单
    int insertReimburse(ZhReimburse record);

    //查看某条审核记录信息
    ZhReimburse selectReimburseId(@Param("reId")Integer reId);

    int updateByPrimaryKeySelective(ZhReimburse record);

    int updateByPrimaryKey(ZhReimburse record);
    
    //报销申请审核
    int updateReimburseAudit(ZhReimburse record);
    
    //根据审核状态查看所有报销申请
    Page<ZhReimburse> selectReimburseAudit(@Param("reAudit")Integer reAudit);
    
    //人员跟据状态查询自己所有的报销申请记录
    Page<ZhReimburse> selectOneselfReimburseAudit(ZhReimburse record);
    
    /**
     * 
     * @version:
     * @Description:查询报销信息
     * @author:zjw
     * @date:2020年8月8日
     * @param reimburse
     * @return
     */
    List<ZhReimburse> selectZhReimburse(ZhReimburse reimburse);
    
}